package com.wkk.mapper;

import com.wkk.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {

    List<User> selectList();

    User selectOne(Integer uid);

    User selectOneByNameAndPwd(User user);

    User selectOneByNameAndMobile(User user);

    User selectOneByMobileAndPwd(User user);

    int insertOne(User user);

    int insertMember(User user);

    int updatePassword(String mobile);

    int updatePasswordByUid(User user);

    int updateUserInfo(User user);

    int deleteUser(Integer uid);

    List<User> selectListByConditionLimit(Map<String,Object> map);

    List<User> selectListByCondition(String condition);

    List<User> exactQueryList(User user);

    int updateUserLevel(User user);

    int updateUserByMember(User user);

    int updateToUser(Integer uid);

    List<User> selectListByCid(Integer cid);

    User selectOneByMobile(String mobile);

    int updateUserCid(User user);

    int updateUserCidState(Integer uid);

    int updateUserCidAndState(Integer uid);


}
